package com.yaorange.nongjt.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yaorange.common.annotation.Excel;
import com.yaorange.common.core.domain.BaseEntity;

/**
 * 打印机认证情况对象 njt_serial_auth
 *
 * @author llx
 * @date 2025-02-28
 */
public class NjtSerialAuth extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNumber;

    /** MAC地址 */
    @Excel(name = "MAC地址")
    private String mac;

    /** 认证时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "认证时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date authTime;

    /** 认证状态 */
    @Excel(name = "认证状态")
    private String authStatus;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private String usageStatus;

    /** 注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date regTime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 主体名称 */
    @Excel(name = "主体名称")
    private String companyName;

    /** 法人姓名 */
    @Excel(name = "法人姓名")
    private String legalPersonName;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String area;

    /** 乡镇/街道 */
    @Excel(name = "乡镇/街道")
    private String country;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String detailAddress;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phoneNumber;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }

    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }
    public void setAuthTime(Date authTime)
    {
        this.authTime = authTime;
    }

    public Date getAuthTime()
    {
        return authTime;
    }
    public void setAuthStatus(String authStatus)
    {
        this.authStatus = authStatus;
    }

    public String getAuthStatus()
    {
        return authStatus;
    }
    public void setUsageStatus(String usageStatus)
    {
        this.usageStatus = usageStatus;
    }

    public String getUsageStatus()
    {
        return usageStatus;
    }
    public void setRegTime(Date regTime)
    {
        this.regTime = regTime;
    }

    public Date getRegTime()
    {
        return regTime;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public String getCompanyName()
    {
        return companyName;
    }

    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }

    public void setLegalPersonName(String legalPersonName)
    {
        this.legalPersonName = legalPersonName;
    }

    public String getLegalPersonName()
    {
        return legalPersonName;
    }

    public String getProvince()
    {
        return province;
    }
    public void setCity(String city)
    {
        this.city = city;
    }

    public String getCity()
    {
        return city;
    }
    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }
    public void setCountry(String country)
    {
        this.country = country;
    }

    public String getCountry()
    {
        return country;
    }
    public void setDetailAddress(String detailAddress)
    {
        this.detailAddress = detailAddress;
    }

    public String getDetailAddress()
    {
        return detailAddress;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public Long getUserId()
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("mac", getMac())
            .append("authTime", getAuthTime())
            .append("authStatus", getAuthStatus())
            .append("usageStatus", getUsageStatus())
            .append("regTime", getRegTime())
                .append("companyName", getCompanyName())
                .append("legalPersonName", getLegalPersonName())
                .append("province", getProvince())
                .append("city", getCity())
                .append("area", getArea())
                .append("country", getCountry())
                .append("detailAddress", getDetailAddress())
                .append("phoneNumber", getPhoneNumber())
            .append("userId", getUserId())
            .toString();
    }
}
